﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/SiteProveedor.Master"
    CodeBehind="ActualizarProveedor.aspx.vb" Inherits="Proveedores.ActualizarProveedor" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="cphHead" ContentPlaceHolderID="cphHead" runat="server">
    <link href="/styles/ui-lightness/jquery-ui-1.10.0.custom.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .table
        {
            display: table;
        }
        
        .caption
        {
            display: table-caption;
        }
        
        .row
        {
            display: table-row;
        }
        
        .cell
        {
            display: table-cell;
        }
        
        fieldset
        {
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            border-radius: 8px;
            margin: 30px 100px 20px 100px;
        }
        
        legend
        {
            background: #FF9;
            border: solid 1px black;
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            border-radius: 8px;
            padding: 6px;
        }
        
        textarea
        {
            resize: none;
            border: 1px solid gray;
            padding: 5px;
            font-family: Tahoma, Arial, sans-serif;
            font-size: 14px;
        }
    </style>
    <script src="/js/jquery-1.9.0.js" type="text/javascript"></script>
    <script src="/js/jquery.blockUI.js" type="text/javascript"></script>
    <script src="/js/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="/js/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="/js/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="cphBody" ContentPlaceHolderID="cphBody" runat="server">
    <script type="text/javascript">
        $.blockUI.defaults.theme = true;
        $.blockUI.defaults.title = 'Actualizar Proveedor...';
        $.blockUI.defaults.message = '<center><img src="/images/loader.gif" /></center>';
    </script>
    <asp:UpdatePanel ID="upPreseleccionado" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <h1 style="font-size: 30px; font-weight: bold; text-align: center; margin-top: 30px;">
                Registrar Proveedor</h1>
            <fieldset style="text-align: left;">
                <legend>BUSQUEDA</legend>
                <table>
                    <tr>
                        <td>
                            Buscar por:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlTipoBusqueda" runat="server" AutoPostBack="True" Width="400px"
                                Height="25px">
                                <asp:ListItem Text="--Seleccione--"></asp:ListItem>
                                <asp:ListItem Text="RUC" Value="01"></asp:ListItem>
                                <asp:ListItem Text="Razon Social" Value="02"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtBusqueda" runat="server" MaxLength="10"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnBuscarProveedor" runat="server" Text="Buscar Proveedor" Width="130px"
                                Height="30px" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <fieldset style="text-align: left;">
                <legend>RESULTADO</legend>
                <div class="table">
                    <div class="row">
                    </div>
                    <div class="row">
                        <div class="cell" style="padding-left: 20px;">
                            <asp:GridView ID="gvProveedores" runat="server" AutoGenerateColumns="False" BackColor="White"
                                BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="100%">
                                <Columns>
                                    <asp:BoundField DataField="IdProveedor" HeaderText="RUC">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NombreProveedor" HeaderText="Proveedor">
                                        <HeaderStyle Width="300px" />
                                        <ItemStyle Width="300px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="fecha_inscripcion" HeaderText="Fecha_inscripcion">
                                        <HeaderStyle Width="150px" />
                                        <ItemStyle Width="150px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="telefono_responsable" HeaderText="Telefono">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="correo_responable" HeaderText="Correo">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                </Columns>
                                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                                <PagerStyle ForeColor="#330099" HorizontalAlign="Center" BackColor="#FFFFCC" />
                                <RowStyle BackColor="White" ForeColor="#330099" />
                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                                <SortedAscendingCellStyle BackColor="#FEFCEB" />
                                <SortedAscendingHeaderStyle BackColor="#AF0101" />
                                <SortedDescendingCellStyle BackColor="#F6F0C0" />
                                <SortedDescendingHeaderStyle BackColor="#7E0000" />
                            </asp:GridView>
                        </div>
                    </div>
                    <div style="height: 5px;">
                    </div>
                    <div class="row">
                    </div>
                </div>
            </fieldset>
            <div align="center">
                <table>
                    <tr align="center">
                    <td width="230px">
                    
                    </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="Agregar" Width="130px" Height="30px" />
                        </td>
                        <td>
                            <asp:Button ID="Button2" runat="server" Text="Modificar" Width="130px" Height="30px" />
                        </td>
                        <td>
                            <asp:Button ID="Button3" runat="server" Text="Eliminar" Width="130px" Height="30px" />
                        </td>
                        <td>
                            <asp:Button ID="Button5" runat="server" Text="Salir" Width="130px" Height="30px" />
                        </td>
                    </tr>
                </table>
            </div>
            <asp:HiddenField ID="hfError" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
